<?php

declare(strict_types=1);

namespace App\Events\Sms;

use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class VerifyCodeEvent
{
    use Dispatchable; use InteractsWithSockets; use SerializesModels;

    /**
     * @var string
     */
    private $phone;

    /**
     * @var string
     */
    private $code;

    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct(string $phone, string $code)
    {
        $this->phone = $phone;
        $this->code  = $code;
    }

    public function getPhone(): string
    {
        return $this->phone;
    }

    public function getCode(): string
    {
        return $this->code;
    }
}
